/**
 * 核心scss
 */
// 颜色变量
@import "./theme/index.scss";
// 系统级
@import "./common.scss";
// cell表格
@import "./cell.scss";
// panel
@import "./panel.scss";
// button
@import "./button.scss";
// border
@import "./border.scss";
// 加载中
@import "./loading.scss";
// uniapp
@import "./unicss.scss";


/**
 * 文本样式
 */
.su-plstyle {
	color: --color(--p-text-pl) !important;
	font-size: 30rpx;
}

/**
 * 图片样式
 */
.su-image {
	border-radius: 10upx;
	height: auto
}

/**
 * 换行省略
 */
.su-nowrap {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap
}

.su-line-wrap {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/**
 * flex布局
 */
.su-flex {
	flex: 1
}

.su-flex-row {
	display: flex;
	flex-direction: row;
	align-items: center
}

.su-flex-column {
	display: flex;
	flex-direction: column
}

/**
 * 绝对定位
 */
.su-pos-absolute {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0
}
/**
 * 粘性布局
 */
.su-sticky {
	/* #ifndef MP */
	position: fixed;
	/* #endif */
	/* #ifdef MP || H5 || APP-PLUS */
	position: sticky;
	/* #endif */
	top: 0;
	left: 0;
	right: 0;
	/* #ifdef H5 */
	top: 44px;
	/* #endif */
	z-index: 500
}

.su-blabel {
	height: 90upx;
	background-color: --color(--p-bg-f8);
	padding-left: 30upx
}

.su-blabel .su-blabel-text {
	color: --color(--p-text-63);
	font-size: 30upx;
	line-height: 45upx;
	padding-left: 15upx;
	border-left: 6upx solid $maincolor
}

.iconfont.icon-clear {
	font-size: 36upx !important;
	line-height: 36upx;
	color: --color(--p-text-34);
}

.iconfont.icon-yanjing-bi,
.iconfont.icon-yanjing-zheng {
	font-size: 40upx !important;
	line-height: 40upx;
	color: --color(--p-text-34);
}

.iconfont.icon-yanjing-zheng.active {
	color: $maincolor
}

/**
 * form表单
 */
.su-form {
	.su-list:after, 
	.su-list:before {
		height: 0 !important;
		background-color: --color(--p-cell-bb) !important
	}
	.su-list-cell::after {
		left: 0 !important;
		background-color: --color(--p-cell-bb) !important
	}
	.su-list-cell-navigate {
		padding: 30upx 30upx !important;
		padding-left: 40upx !important
	}
	.su-list-cell-navigate .title {
		width: 200upx;
		color: --color(--p-text-63)
	}
	.su-list-cell-navigate input {
		flex: 1;
		font-size: 30upx;
		color: --color(--p-text-34)
	}
	.su-form-page {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0
	}
}

/**
 * 顶部搜索
 */
.su-top-search {
	display: flex;
	height: 105upx;
	background-color: --color(--p-white);
	padding: 0upx 24upx;
	align-items: center;
	z-index: 99;
	
	.su-search, .su-search-left {
		flex: 1
	}
	
	.su-search-right {
		width: 60upx;
		margin-left: 20upx;
		text-align: center;
		.su-choice-icon {
			color: --color(--p-text-b1);
			font-size: 44upx
		}
	}
}

// 黑色透明背景
@for $i from 1 through 9 {
	.su-black-op#{$i} {
		background-color: rgba(0,0,0, $i / 10);
	}
}

// 白色透明背景
@for $i from 1 through 9 {
	.su-white-op#{$i} {
		background-color: rgba(255,255,255, $i / 10);
	}
}